package com.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.product.entity.AttrGroupEntity;
import com.product.vo.AttrGroupWithAttrsVo;
import com.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author
 * @email 3299686223@qq.com
 * @date 2022-08-08 14:42:26
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long cateLogId);

    /**
     * 查出spu 对应的属性 和分组下的属性
     *
     * @param spuId 商品
     * @param catalogId
     * @return
     */
    List<SkuItemVo.ItemGroupAttrsVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

